/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Pham
 */
public class DTOStatistic {
    String proName;
    int quantity;
    long price;

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public long getPrice() {
        return price;
    }

    public void setPrice(long price) {
        this.price = price;
    }

    public DTOStatistic() {
    }
    
    public DTOStatistic(ResultSet rs) throws SQLException
    {
        this.proName = rs.getString("product_name");
        this.quantity = rs.getInt("quantity");
        this.price = rs.getLong("import_price");
    }
}
